import { S } from '../../s';
import { IPSDEFInputTip } from './ipsdefinput-tip';
import { IPSLanguageRes } from '../../res/ipslanguage-res';
import { PSModelObjectImpl } from '../../psmodel-object-impl';

export class PSDEFInputTipImpl
  extends PSModelObjectImpl
  implements IPSDEFInputTip
{
  get codeName(): string {
    return this.M.codeName;
  }

  get content(): string {
    return this.M.content;
  }

  get contentLanResTag(): string {
    return this.M.contentLanResTag;
  }

  protected contentpslanguageres: IPSLanguageRes;
  getContentPSLanguageRes(): IPSLanguageRes | null {
    return (
      this.contentpslanguageres ||
      (this.contentpslanguageres = this.fillObjectModel(
        S._276,
        this.M.getContentPSLanguageRes,
        S._2dc,
      ) as IPSLanguageRes)
    );
  }

  get htmlContent(): string {
    return this.M.htmlContent;
  }

  get moreUrl(): string {
    return this.M.moreUrl;
  }

  get rawContent(): string {
    return this.M.rawContent;
  }

  get tipMode(): string {
    return this.M.tipMode;
  }

  get uniqueTag(): string {
    return this.M.uniqueTag;
  }

  get default(): boolean {
    return this.M.default;
  }

  get enableClose(): boolean {
    return this.M.enableClose;
  }
  get cls(): string {
    return 'PSDEFInputTipImpl';
  }
  instanceof(cls: string): boolean {
    if (cls == S._1c3) return true;
    return super.instanceof(cls);
  }
}
